<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html><head>
<title>Escapers Test</title>
<script src="compat.js"></script>
<script src="contextDefs.js"></script>
<script>
var compiled = /[?&]compiled/.test(location.search);
var $;
// If the location contains ?compiled, then use the minified version.
if (compiled) {
  document.write('<script src="jquery-templates-compiled.js"><\/script>');
  COMPILED = true;
  DEBUG = false;
  document.title += ' compiled';
  $ = {
        encode: function () {},
        extend: function (a, b) { for (var k in b) { a[k] = b[k]; } }
      };

  document.write(
      '<script src="jquery-escapers-only-compiled.js"><\/script>');
} else {
  document.write(
      '<script src="contextUpdate.js"><\/script>' +
      '<script src="escapers.js"><\/script>');
}
</script>
<script>
if (compiled) {
  escapeHtml = $.encode[ESC_MODE_ESCAPE_HTML];
  escapeHtmlRcdata = $.encode[ESC_MODE_ESCAPE_HTML_RCDATA];
  escapeHtmlAttribute = $.encode[ESC_MODE_ESCAPE_HTML_ATTRIBUTE];
  escapeHtmlAttributeNospace = $.encode[ESC_MODE_ESCAPE_HTML_ATTRIBUTE_NOSPACE];
  filterHtmlElementName = $.encode[ESC_MODE_FILTER_HTML_ELEMENT_NAME];
  filterHtmlAttribute = $.encode[ESC_MODE_FILTER_HTML_ATTRIBUTE];
  escapeJsString = $.encode[ESC_MODE_ESCAPE_JS_STRING];
  escapeJsValue = $.encode[ESC_MODE_ESCAPE_JS_VALUE];
  escapeJsRegex = $.encode[ESC_MODE_ESCAPE_JS_REGEX];
  escapeCssString = $.encode[ESC_MODE_ESCAPE_CSS_STRING];
  filterCssValue = $.encode[ESC_MODE_FILTER_CSS_VALUE];
  escapeUri = $.encode[ESC_MODE_ESCAPE_URI];
  normalizeUri = $.encode[ESC_MODE_NORMALIZE_URI];
  filterNormalizeUri = $.encode[ESC_MODE_FILTER_NORMALIZE_URI];
  stripHtmlTags = function (s) {
    return escapeHtmlAttribute(new SanitizedHtml(s)).replace(/&amp;/g, '&')
        .replace(/&lt;/g, '<').replace(/&gt;/g, '>').replace(/&quot;/g, '\x22');
  };
}
</script>

<script src="asserts.js"></script>
<script src="escapersTest.js"></script>

<link rel="stylesheet" type="text/css" href="../css/test.css" />
</head>
<body>
<script src="runtests.js"></script>
</body></html>
